package com.spstudio.iforward.end.bean;

import java.io.Serializable;
import java.security.Principal;

import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;
import javax.inject.Named;

@SessionScoped
@Named
public class User implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2124098305659088138L;
	
	@Inject Principal principal;
	
	public String getUsername() {
		return principal.getName().toUpperCase();
	}
	
}
